package com.core.registrar;

import com.core.handler.CommandHandler;
import org.noear.solon.annotation.Component;
import org.noear.solon.annotation.Inject;

/**
 * 获取到注册到bean中的类
 * @author hc
 * @CreateTime 2025/7/29 11:50
 */
@Component(value = "CommandRegistry")
public class CommandRegistry {

    @Inject
    private CommandRegistrar registrar;


    public CommandHandler getHandler(String command) {
        return registrar.getHandler(command);
    }
}
